package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.ExamMapper;
import com.liushuai.eas.pojo.Exam;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class ExamImp implements ExamMapper {

    @Resource
    private ExamMapper examMapper;

    @Override
    public int insert(Exam entity) {
        return examMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return examMapper.deleteById(id);
    }

    @Override
    public int deleteById(Exam entity) {
        return examMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Exam> queryWrapper) {
        return 0;
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Exam entity) {
        return examMapper.updateById(entity);
    }

    @Override
    public int update(Exam entity, Wrapper<Exam> updateWrapper) {
        return 0;
    }

    @Override
    public Exam selectById(Serializable id) {
        return examMapper.selectById(id);
    }

    @Override
    public List<Exam> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Exam> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Exam selectOne(Wrapper<Exam> queryWrapper) {
        return ExamMapper.super.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Exam> queryWrapper) {
        return null;
    }

    @Override
    public List<Exam> selectList(Wrapper<Exam> queryWrapper) {
        return examMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Exam> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Exam> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Exam>> P selectPage(P page, Wrapper<Exam> queryWrapper) {
        return examMapper.selectPage(page, queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Exam> queryWrapper) {
        return null;
    }

    @Override
    public List<Map<String, String>> queryClassCourseByTeacherId(int teacherId,String year) {
        return examMapper.queryClassCourseByTeacherId(teacherId,year);
    }

    @Override
    public List<Map<String, Object>> queryExamByClassId(int classId) {
        return examMapper.queryExamByClassId(classId);
    }

    @Override
    public List<Map<String,Object>> queryExamByStudent(int studentId) {
        return examMapper.queryExamByStudent(studentId);
    }

    @Override
    public Exam queryExamById(int id) {
        return examMapper.queryExamById(id);
    }
}
